package com;

import lombok.extern.slf4j.Slf4j;
import org.openjdk.jol.info.ClassLayout;

/**
 * @auth 罗俊华
 * @Date 2021/9/4 10:20 上午
 */

@Slf4j
public class ViewObjectHeader {

    public static void main(String[] args) throws InterruptedException {
        Dog o = new Dog();

//        -XX:BiasedLockingStartupDelay=0   偏向锁初始化有延迟，使用此虚拟机参数可以指定偏向锁的初始延迟
        log.debug(ClassLayout.parseInstance(o).toPrintable());

        Thread.sleep(10000);

        log.debug(ClassLayout.parseInstance(o).toPrintable());
    }
}

class Dog{

}
